Create Static PIX QR Code
The static QR Code is used for payments where the identity of the payer is unknown, as well as when and how many payers there will be. Basically, it consists of a key, and optionally a value, encoded, and can be paid multiple times, as it only references the key.
Request
ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/qrcodeMETHOD
POSTRequest Body: Static QR Code
{
"request_control_key": "8a923886-afce-4116-ac1f-69bdffcf8da9",
"qr_code_type": "static",
"pix_key": "joaosilva@gmail.com",
"amount": 10.25,
}
Body Params
Field | Type | Description | Characters |
---|---|---|---|
request_control_key * | string | Unique UUID4 identifier of the request. | - |
qr_code_type * | string | Type of the QR Code. | "static" |
pix_key * | string | PIX key representing the destination account of the transaction. | - |
amount | float | QR Code value. | If not provided, it will be entered by the payer. |
Response
STATUS
201 CreatedResponse Body: Create Static QR Code
{
"request_control_key": "037b46b1-0c67-4c0d-aac3-1e395dfdcb10",
"base_64_payload": "<BASE64 DA URI DO PIX COPIA E COLA>"
}
Field | Type | Description | Characters |
---|---|---|---|
request_control_key * | string | Unique UUID4 identifier of the request. | - |
base_64_payload * | string | URL of the QR Code for payment, in base64. | - |
STATUS
400Response Body
{
"title": "Bad Request",
"description": "Invalid payload for QR Code creation.",
"translation": "Payload inválido para a criação de QR Code.",
"code": "QRI000003"
}